package cool.lichuan.zabbix.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author LiChuan
 * @date 2021/11/4 8:49
 */
@Component
@ConfigurationProperties(prefix = "spring.zabbix")
public class ZabbixProperties {
    /** zabbix 路径 */
    private String url;
    /** 用户名 */
    private String userName;
    /** 密码 */
    private String password;
    /** 自动注销时间 单位：秒，设置方式：User settings -> 自动注销 例如：90s、5m、2h、1d单位不是秒 */
    private long autoLogout = 90L;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public long getAutoLogout() {
        return autoLogout;
    }

    public void setAutoLogout(long autoLogout) {
        this.autoLogout = autoLogout;
    }
}
